
package swdemo;

// 没啥好说的了。。
public class switcher {
	private boolean status;

	public switcher() {
		status = false;
	}
	
	public boolean get()
	{
		return status;
	}

	public boolean toggle()
	{
		boolean tmp = !status;
		return set(tmp);
	}

	public boolean set(boolean ctl)
	{
		status = ctl;
		return status;
	}
	  
}
